import {Model,ModelDefinition} from './Model';
export class ChatMessage extends Model {
    static fields: ModelDefinition = {
      id: {
        type: 'number',
        primaryKey: true,
        autoIncrement: true
      },
      sessionId: {
        type: 'number',
        allowNull: false,
       
      },
      content: {
        type: 'string',
        allowNull: false
      },
      role: {
        type: 'string',
        allowNull: false, 
        
      },
      timestamp: {
        type: 'date',
        allowNull: false
      },
      tokens: {
        type: 'number',
        allowNull: false
      }
    };
  }